@extends('admin.layout.index')
@section('content')

<div class="col-lg-12">

                    <div class="card">
                        <div class="card-action">
                        <div style="margin-top: 10px;">
                                            
                                            <div class="btn-group" >
                                              <button data-toggle="dropdown" id="buttona" class="btn btn-primary dropdown-toggle">一级分类 <span class="caret"></span></button>
                                              <ul class="dropdown-menu" id="class1">
                                             
                                                
                                              </ul>
                                            </div>
                                            <div style="margin:5px;display:none" id="class2div" class="btn-group">
                                              <button data-toggle="dropdown" id="buttonb" class="btn btn-danger dropdown-toggle">二级分类 <span class="caret"></span></button>
                                              <ul class="dropdown-menu" id="class2">
                                                
                                               
                                              </ul>
                                            </div>
                                           <div style="margin:5px;display:none" id="class3div" class="btn-group">
                                              <button data-toggle="dropdown" id="buttonc" class="btn btn-warning dropdown-toggle">三级分类 <span class="caret"></span></button>
                                              <ul class="dropdown-menu" id="class3">
                                                
                                               
                                              </ul>
                                            </div>
                                          
                                          </div>
                        </div>
                        <div class="card-content">
            
                              
    <form action="/admin/goods/doadd" method="post" enctype="multipart/form-data">
      {{ csrf_field() }}
    <div class="file-field input-field">
      <div class="btn">
        <span>File</span>
        <input type="file" name="pic" required>
      </div>
      <div class="file-path-wrapper">

        <input class="file-path validate" type="text"  placeholder="上传产品头像">
      </div>
    </div>
 
          <input type="hidden" id="Aclass" name="Aclass" >
          <input type="hidden" id="Bclass" name="Bclass" >  
          <input type="hidden" id="Cclass" name="Cclass" >      
                            </div>
                            </div>
                            </div>
   <div class="col-md-12">
  <!-- Advanced Tables -->
  <div class="card">
    <div class="card-action">商品添加第一步</div>
    <div class="card-content">
      <div class="table-responsive">
        <div id="dataTables-example_wrapper" class="dataTables_wrapper form-inline" role="grid">
          <div class="row">
            
           
          </div>
          <table class="table table-striped  table-hover dataTable no-footer" id="dataTables-example" aria-describedby="dataTables-example_info">
            <thead>
              <tr role="row">
                <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="3" aria-sort="ascending" aria-label="Rendering engine: activate to sort column ascending" style="width: 166px;">商品基本信息填写</th>
                </tr>
            </thead>
            <tbody>
                

              <tr class="gradeA odd">
                <td class="sorting_1" style="width:200px">商品名称：</td>
                <td class=" " style="height:50px">
                  <input type="text" style="height:30px;margin:0px" value="{{ old('goodsname') or '' }}" name="goodsname" required>
                </td>
                <td><span></span>
                </td>
               </tr> 

               <tr class="gradeA odd">
                <td class="sorting_1" style="width:200px">商品价格：</td>
                <td class=" " style="width:300px;height:50px">
                  <input type="text" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else if(this.value == ''){this.value=1}else{this.value=this.value.replace(/\D/g,'')} " onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')} " style="height:30px;margin:0px" value="{{ old('price') or '' }}" name="price" required>
                </td>
                <td><span></span>
                </td>
               </tr>

               <tr class="gradeA odd">
                <td class="sorting_1" style="width:200px">商品库存：</td>
                <td class=" " style="height:30px;width:300px;height:50px">
                  <input type="text" style="margin:0px" name="inventor" value="{{ old('inventor') or '' }}" required>
                </td>
                <td><span></span>
                </td>
               </tr>
                <tr class="gradeA odd">
                <td class="sorting_1" style=""></td>
                <td class=" " style="width:300px;height:50px">
                  
                  <button type="submit" class="btn btn-default"> 提交 </button>
                </td>
                <td>
                </td>
               </tr>
            </tbody>
          </table>
          </form>
        </div>
      </div>
    </div>
  </div>
  <!--End Advanced Tables --></div>
@endsection
@section('classified')
    <script src="/adminassets/goodsindexjs/goodsadd.js"></script>
@endsection